﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TravelGenerator.BusinessObjects.ObjectValidator;

namespace TravelGenerator.BusinessObjects.SavingManagement
{
    public class SaveEntityResult
    {
        public SaveResult SaveResult { get;  private set; }        

        public Exception Error { get; set; }

        #region Constructor

        private SaveEntityResult()
        {

        }

        #endregion

        #region Methods

        public static SaveEntityResult Create(SaveResult result)
        {
            return new SaveEntityResult() { SaveResult = result };
        }
        #endregion
    }
}
